package 考试;

import java.util.Scanner;

public class PisaTest {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请选择您要制作的披萨1.培根  2，海鲜");
        int a=input.nextInt();
        switch (a){
            case 1:
                Pisa pi=new Peigen();
                ((Peigen) pi).peigen();
                break;
            case 2:
                Pisa pi2=new Haixian();
                ((Haixian) pi2).haixian();
                break;
            default:
                System.out.println("输入错误");
                break;

        }

    }

}
